<include file='Common:header' />

<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">

    <!-- #section:basics/sidebar -->

    <include file='Common:left' />
    <!-- /section:basics/sidebar -->
    <div class="main-content">
        <div class="main-content-inner">
            <div class="page-content">







                <div class="row">
                    <div class="col-xs-12">
                        <div>
                            <form id="leftnav" name="leftnav" method="post" action="" >
                                <input type="hidden" name="checkk" id="checkk" value="1" /><!--用于判断操作类型-->
                                <table width="100%" class="table table-striped table-bordered table-hover" id="dynamic-table">
                                    <thead>
                                    <tr>
                                        <th width="5%">id</th>
                                        <th width="35%">报表标题</th>
                                        <th width="10%">报表编号</th>
                                        <th width="15%">报表类型</th>
                                        <th width="25%">发送对象</th>
                                        <th width="10%" style="border-right:#CCC solid 1px;">操作</th>
                                    </tr>
                                    </thead>

                                    <tbody>

                                    <foreach name="table" item="v">
                                        <tr>
                                            <td height="28" >{$v.id}</td>
                                            <td>{$v.title}</td>
                                            <td>{$v.code}</td>
                                            <td><if condition="$v['classify'] eq 1">港管委表 <elseif condition="$v['classify'] eq 2" />企业用户表 <elseif condition="$v['classify'] eq 3" />汇总表</if></td>
                                            <td>{$v.target}</td>
                                            <td>
                                                <div class="hidden-sm hidden-xs action-buttons">
                                                    <a style="margin-top: 3px; " class="btn-success" href="{:U('install_table_info',array('id'=>$v['id']))}" title="查看报表">
                                                        <i class="ace-icon fa fa-search bigger-100">查看报表</i>
                                                    </a>
                                                </div>
                                            </td>
                                        </tr>
                                    </foreach>
                                    <tr>
                                        <td height="50" colspan="10" align="left">{$show}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>

                <include file='Common:header_nav' />

            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->


    <script>
        function del(id){
            if(id==1){
                layer.alert('超级管理员不可删除', {icon: 4});
                return false;
            }
            layer.confirm('你确定要删除吗？', {icon: 3}, function(index){
                layer.close(index);
                window.location.href="__URL__/admin_list_del/admin_id/"+id+"";
            });
        }

        function stateyes(val){
            $.post('{:U("admin_list_state")}',
                    {x:val},
                    function(data){
                        var $v=val;
                        if(data.status){
                            if(data.info=='状态禁止'){
                                var a='<button class="btn btn-minier btn-danger">状态禁用</button>'
                                $('#zt'+val).html(a);
                                return false;
                            }else{
                                var b='<button class="btn btn-minier btn-yellow">状态开启</button>'
                                $('#zt'+val).html(b);
                                return false;
                            }

                        }
                    });
            return false;
        }
    </script>
    <include file='Common:footer' />

</div><!-- /.main-container -->
</body>
</html>
